//
//  LMTAFNetwork.h
//  kr_36
//
//  Created by lmt on 16/1/18.
//  Copyright © 2016年 www.lanou3g.com 蓝鸥科技. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef NS_ENUM(NSUInteger, LMTResposeStyle) {
    LMTJSON,
    LMTXML,
    LMTData,
};

typedef NS_ENUM(NSUInteger, LMTRequestStyle) {
    RequestJSON,
    RequestString,
    RequestDefault
};
@interface LMTAFNetwork : NSObject

+ (void)getUrl:(NSString *)url
          body:(id)body
      response:(LMTResposeStyle)style
requestHeadFile:(NSDictionary *)handFile
       success:(void (^)(NSURLSessionDataTask *task, id resposeObject))success
       failure:(void (^)(NSURLSessionDataTask *task, NSError *error))failure;

+ (void)postUrlString:(NSString *)url
                 body:(id)body
             response:(LMTResposeStyle)style
            bodyStyle:(LMTRequestStyle)bodyStyle
      requestHeadFile:(NSDictionary *)headFile
              success:(void (^)(NSURLSessionDataTask *task, id responseObject))success
              failure:(void (^)(NSURLSessionDataTask *task, NSError *error))failure;

@end
